const express = require('express');
const router = express.Router();
const contactController = require('../controllers/contactController');
const { authenticate } = require('../middlewares/authMiddleware');

// CRM客户管理
router.get('/customers', authenticate, contactController.getAllCrmCustomers);
router.get('/customers/export', authenticate, contactController.exportCrmData);
router.post('/customers', authenticate, contactController.addCrmCustomer);
router.put('/customers/:id', authenticate, contactController.updateCrmInfo);
router.delete('/customers/:id', authenticate, contactController.deleteCrmCustomer);

module.exports = router; 